<?php
	include_once "thichbaiviet_db.php";
	
	class thichbaiviet_bs
	{
		//--------------Field---------------
		private $MaBaiViet = 0;
		public function SetMaBaiViet($MaBaiViet)     { $this->MaBaiViet = $MaBaiViet;     }
		public function GetMaBaiViet()               { return $this->MaBaiViet;           }
		
		private $MaNguoiDung = 0;
		public function SetMaNguoiDung($MaNguoiDung) { $this->MaNguoiDung = $MaNguoiDung; }
		public function GetMaNguoiDung()             { return $this->MaNguoiDung;         }
		
		private $ThoiGian = "0000-00-00 00:00:00";
		public function SetThoiGian($ThoiGian)    { $this->ThoiGian = $ThoiGian;       }
		public function GetThoiGian()             { return $this->ThoiGian;            }
		
		//--------------Method---------------
		public function Them()
		{
			$data = new thichbaiviet_db();
			return $data->Them($this->MaBaiViet, $this->MaNguoiDung, $this->ThoiGian);
		}
		
		public function CapNhat()
		{
			$data = new thichbaiviet_db();
			return $data->CapNhat($this->MaBaiViet, $this->MaNguoiDung, $this->ThoiGian);
		}
		
		public function Xoa()
		{
			$data = new thichbaiviet_db();
			return $data->Xoa($this->MaBaiViet, $this->MaNguoiDung);
		}
		
		public function LayDanhSach()
		{
			$data = new thichbaiviet_db();
			return $data->LayDanhSach($this->MaBaiViet);
		}
	}
?>